<tagLib name="html" />
<include file="Public:header" />
	<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
	  <div style="float:left;"><a href="{YICMS::U('Index/stat')}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;会员列表</div>
	</div>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;">
		<tr class="header" align="center">
			<td  width="10%" class="center">激活邮箱</td>
			<td  width="15%" class="center">会员姓名</td>
			<td  width="20%" class="center">会员email</td>
			<td  width="20%" class="center">最后在线时间</td>
			<td  width="10%" class="center">最后在线IP地址</td>
			<td  width="10%" class="center">查看会员资料</td>
			<td  width="10%" class="center">允许登录</td>
			<td  width="5%" class="center">删除</td>
		</tr>
	</table>
	<ul id="list">
		<if condition="$list neq NULL">
			<volist name="list" id="vo">
				<li style="list-style:none;">
					<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
						<tr align="center" class="smalltxt">
							<td width="10%" class="altbg2 center">
								<if condition="$vo.checkmail neq 0">
									<span>已激活</span>
								<elseif condition="!empty($vo['openid'])"/>
									<span style="color:blue;">QQ用户</span>
								<else/>
									<span style="color:red;">未激活</span>
								</if>
							</td>
							<td width="15%" class="altbg1 center">{YICMS:$vo.uname}</td>
							<td width="20%" class="altbg2 center">{YICMS:$vo.email}</td>
							<td width="20%" class="altbg1 center">{YICMS:$vo.lasttime|switchtime=###}</td>
							<td width="10%" class="altbg2 center"><a href="http://ip.siji99.com/index.php/Index/search/ip/{YICMS:$vo.lastip|long2ip}" target="_blank">点击查看IP所在地</a></td>
							<td width="10%" class="altbg1 center"><a href="{YICMS::U('Userlist/detail?id='.$vo['uid'])}">点击查看</a></td>
							<td width="10%" class="altbg2 center">
								<if condition="$vo.state eq 0">
									<a href="{YICMS::U('Userlist/state?id='.$vo['uid'].'&state=1')}" style="color:red;">点击允许登录</a>
								<else />
									<a href="{YICMS::U('Userlist/state?id='.$vo['uid'].'&state=0')}" style="color:red;">点击禁止登录</a>
								</if>
							</td>
							<td width="5%" class="altbg2 center"><a href="{YICMS::U('Userlist/del?id='.$vo['uid'])}" onclick="return confirm('提示：您确定要删除该会员吗？不可恢复！建议禁止该会员登录而不删除!')" style="background:url(../Public/Images/admin/remove.png) no-repeat center center;padding:0px 20px;">&nbsp;</a></td>
						</tr>
					</table>
				</li>
			</volist>
		<else />
			<li>
				<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
					<tr align="center" class="smalltxt">
						<td class="altbg1" style="text-align:center;font-weight:bold;color:#E01558;padding:10px 0px;">暂时没有会员!^_^</td>
					</tr>
				</table>
			</li>
		</if>	
	</ul>
	<div class="page">{YICMS:$page}</div>
<br/>
<include file="Public:footer" />